package cn.crm.dao;

import cn.crm.pojo.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface UsersMapper {

    //登录
    @Select("SELECT * FROM t_users where telephone=#{telephone} and password=#{password}")
    public Users login(Users users);

    //注册
    @Insert("insert into t_users values(null,#{name},#{telephone},#{password})")
    public Integer register(Users users);

}
